import { createApp } from "vue";
import App from "@/App.vue";
import router from "./router";
// 引入svg相关依赖
import "virtual:svg-icons-register";
// 引入全局组件注册插件
import GlobalComPlugin from "@/components/index";

// 引入全局scss样式
import "@/styles/index.scss";
// 引入elementPlus全局样式
import "element-plus/dist/index.css";
// 引入Pinia和pinia持久化存储插件
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(GlobalComPlugin);
app.use(router);
app.use(pinia);
app.mount("#app");
